import { http, toast } from '@/node_modules/uview-plus'

// 密码登录
export const login = (params) => http.post('/exam-user/users/login', params)

// 获取后端验证码（非手机验证码）
export const getBase64Captcha = () => http.get('/exam-user/getBase64Captcha')

// 获取题库
export const getBank = () => http.get('/exam-practice/questionBanks/findAll')

// 获取对应题库的题
export const getAllByBankId = (data) => http.get('/exam-practice/questions/findAllByBankId', { params: data })
